package com.it.server.mapper;

import com.it.pojo.Entity.Address;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2025-07-23
 */
@Mapper
public interface AddressMapper extends BaseMapper<Address> {
    @Update("update address set is_default = 0 where user_id = #{userId}")
    void setDefault(Integer id);
}
